home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Draw / CBitmapStripStack.as < prev    next >
Text File  |  2011-08-19  |  998b  |  40 lines

  1. package Local.Draw
  2. {
  3.    import flash.display.BitmapData;
  4.    import flash.geom.Point;
  5.    import flash.geom.Rectangle;
  6.    
  7.    public class CBitmapStripStack
  8.    {
  9.        
  10.       
  11.       public var mSRect:Rectangle;
  12.       
  13.       public var mDRect:Rectangle;
  14.       
  15.       public var mBitmapStrip:CBitmapStrip;
  16.       
  17.       public function CBitmapStripStack(param1:CBitmapStrip, param2:Rectangle, param3:Point)
  18.       {
  19.          if(true)
  20.          {
  21.             super();
  22.             if(true)
  23.             {
  24.                mBitmapStrip = param1;
  25.                mSRect = param2;
  26.             }
  27.             mDRect = new Rectangle(param2.x + param3.x,param2.y + param3.y + param1.mDisplacement,param2.width,param2.height);
  28.          }
  29.       }
  30.       
  31.       public function Render(param1:BitmapData) : void
  32.       {
  33.          if(true)
  34.          {
  35.             param1.copyPixels(mBitmapStrip.mBMD,mSRect,mDRect.topLeft,null,null,!mBitmapStrip.mBackground);
  36.          }
  37.       }
  38.    }
  39. }
  40.